/**
* Copyright @ 2023 iAuto (Shanghai) Co., Ltd.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are NOT permitted except as agreed by
* iAuto (Shanghai) Co., Ltd.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

@color: #3569FD;

.abilityContainer {
  :global .abilityForm {
    margin: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    // padding-left: 20px;
    background-color: #fff !important;
    // margin-bottom: 10px;
  }

  :global {
    .ant-badge-multiple-words {
      right: -20px !important;
    }
  }

  .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 10px;
    padding-right: 30px;
    padding-left: 20px;

    :global {

      .ant-cascader {
        // width: 140px;
      }

      // 修改select样式
      .ant-select-selector {
        height: 32px !important;
      }

      .ant-select-selection-item {
        height: 30px !important;
        line-height: 30px !important;
      }

      .ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input {
        height: 30px;
      }

      .ant-select-selection-placeholder {
        height: 30px;
        line-height: 30px !important;
      }

      .ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector {
        height: 32px !important;
      }
    }
  }

  .container {
    :global {
      .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
        border-color: @color;
      }

    }
  }


  :global {
    .ant-card {
      margin-top: 10px;

      .ant-card-body {
        padding: 10px 20px;
      }
    }

    .ant-btn {
      // width: 80px;
      // height: 40px;
      // border-radius: 5px;
      // background-color: @color;
    }

    .ant-btn-primary[disabled] {
      background-color: #fff;
      color: #9fa0a2;
    }

    .ant-btn-default {
      background-color: #fff;
    }

    .ant-btn:hover,
    .ant-btn:focus {
      color: @color;
      border-color: @color;
    }

    .ant-btn-primary:hover {
      color: #fff;
    }

    .ant-btn-primary:focus {
      color: #fff;
    }

    .ant-btn-primary[disabled],
    .ant-btn-primary[disabled]:hover,
    .ant-btn-primary[disabled]:focus,
    .ant-btn-primary[disabled]:active {
      border-color: #d9d9d9;
      color: #9fa0a2;
    }

    .ant-btn-link {
      display: flex;
      justify-content: center;
      align-items: center;
      color: #3569FD;
      border-color: #3569FD;
      background: #fff;
      width: 48px;
      height: 24px;
    }

    .ant-input:focus,
    .ant-input-focused {
      border-color: @color;
    }

    .ant-input:hover {
      border-color: @color;
    }


    .ant-select:not(.ant-select-disabled):hover .ant-select-selector {
      border-color: @color;
    }


  }

  .tableContainer {
    .commonIcon {
      width: 20px;
      height: 20px;
      line-height: 20px;
      // margin-right: 8px;
      border-radius: 4px;
      text-align: center;
      color: #fff;
    }

    :global {
      .ant-table-thead>tr>th:first-child::before {
        content: none !important;
      }

      .ant-table-tbody>tr>td>.ant-table-wrapper:only-child .ant-table {
        margin: 0;
        background-color: #fafafa;
      }

      .ant-table-tbody>tr:hover:not(.ant-table-expanded-row)>td {
        cursor: default;
      }

      .ant-table-tbody>tr>td {
        border-bottom: 1px solid #f0f0f0;
        height: 42px;
        font-size: 14px;
        letter-spacing: 0;
        font-weight: 400;
      }

      .ant-table-thead>tr>th,
      .ant-table-tbody>tr>td,
      .ant-table tfoot>tr>th,
      .ant-table tfoot>tr>td {
        padding: 8px 11px;
      }

      .ant-table-expanded-row .ant-table-cell {
        background-color: #FAFAFA;
      }

      .ant-table-placeholder>.ant-table-cell {
        border-bottom: none;
      }

      .row-header-default {
        color: #000
      }

      .row-header-ischange {
        color: #ff7918
      }

      .row-header-isdelete {
        color: #9fa0a2
      }

      .row-header-isnew {
        color: #00a870
      }

      .ant-table {
        margin-top: 10px;
      }

      // .ant-pagination-item:hover {
      //   border-color: @color;
      // }

      // .ant-pagination-item:hover a {
      //   color: @color;
      // }

      // .ant-pagination-item:focus-visible {
      //   border-color: @color;
      // }

      // .ant-pagination-item:focus-visible a {
      //   color: @color;
      // }

      // .ant-pagination-item-active {
      //   border-color: @color;
      // }

      // .ant-pagination-item-active a {
      //   color: @color;
      // }

      // .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon,
      // .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-link-icon {
      //   color: @color;
      // }

      // .ant-pagination-prev:focus-visible .ant-pagination-item-link,
      // .ant-pagination-next:focus-visible .ant-pagination-item-link {
      //   color: @color;
      //   border-color: @color;
      // }

      // .ant-pagination-prev:hover .ant-pagination-item-link,
      // .ant-pagination-next:hover .ant-pagination-item-link {
      //   color: @color;
      //   border-color: @color;
      // }

      // .ant-pagination-options-quick-jumper input:hover {
      //   border-color: @color;
      // }

      // .ant-pagination-options-quick-jumper input:focus,
      // .ant-pagination-options-quick-jumper input-focused {
      //   border-color: @color;
      // }
    }

  }




}

.title {
  margin: 0 0 20px 0;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 400;
  font-size: 16px;
}

.title2 {
  margin: 20px 0 20px 0;
  color: #878787;
  font-weight: 400;
  font-size: 14px;
}

.subTitle {
  margin: 30px 0 10px 0;
  color: #878787;
  font-weight: 400;
  font-size: 14px;
}

.importModal {
  :global {
    .ant-row {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      flex-flow: row;
    }

    // .ant-select-selector {
    //   height: 32px !important;
    // }

    // .ant-select-selection-item {
    //   line-height: 32px !important;
    // }

    // .ant-select-single.ant-select-lg:not(.ant-select-customize-input):not(.ant-select-customize-input) .ant-select-selection-search-input {
    //   height: 32px;
    //   line-height: 32px;
    // }

    .ant-modal-body {
      padding: 27px 44px 35px 34px !important;
    }

    .ant-modal-content {
      // border-radius: 10px !important;
    }

    .ant-modal-header {
      // border-radius: 10px 10px 0 0 !important;
    }

    .ant-modal-footer {
      // padding: 0 20px 25px 0;
      // border: none;
    }

    // .ant-btn-link {
    //   display: flex;
    //   justify-content: center;
    //   align-items: center;
    //   color: #3569FD;
    //   border-color: #3569FD;
    //   background: #fff;
    //   width: 48px;
    //   height: 24px;
    //   position: absolute;
    //   top: 4px;
    //   right: 0;
    //   font-size: 12px;
    // }

    .ant-modal-footer .ant-btn+.ant-btn:not(.ant-dropdown-trigger) {
      margin-left: 10px !important;
    }
  }

  .commonLabel {
    width: 124px;
    text-align: right;
  }

  .commonItem {
    width: 380px;
    // height: 32px;
    position: relative;

    :global {
      .ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector {
        height: 32px;
      }

      .ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector::after,
      .ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item,
      .ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-placeholder {
        // line-height: 32px;
      }

      .ant-input {
        // height: 40px;
        // line-height: 40px;
      }
    }
  }
}

.backModal {
  :global {

    .ant-modal-body {
      padding: 30px 45px 35px 37px !important;
    }

    .ant-modal-content {
      // border-radius: 10px !important;
    }

    .ant-modal-header {
      border-radius: 10px 10px 0 0 !important;
    }

    .ant-modal-footer {
      padding: 0 20px 25px 0;
      border: none;
    }

    .ant-input {
      border-radius: 5px;
    }

    // .ant-form-item-control-input {
    //   width: 416px;
    //   height: 90px;
    // }

    // .ant-form-item-control-input-content {
    //   width: 416px;
    //   height: 90px;
    // }

    .ant-form-item-explain-connected {
      margin-top: 12px;
    }
  }
}

.confirmModal {
  :global {
    .ant-modal-content {
      // border-radius: 5px !important;
    }

    .ant-modal-confirm-body {
      padding: 40px 70px 35px 70px !important;
    }

    .ant-modal-confirm-content {
      font-size: 16px;
      color: rgba(0, 0, 0, 0.85);
      letter-spacing: 0;
      margin-top: 0;
    }

    .ant-modal-body {
      padding: 0 !important;
    }

    .ant-modal-confirm .ant-modal-confirm-btns {
      float: right;
      padding: 0 20px 25px 0;
      margin-top: 0;
    }

    .ant-modal-footer .ant-btn+.ant-btn:not(.ant-dropdown-trigger) {
      margin-left: 8px !important;
    }
  }
}

.extraBtn {
  display: flex;
  width: 235px;
  margin: 0 auto;
  .extraBtnItem {
    width: 110px;
    font-size: 16px;
    color: #00b4e1;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
  }
}